import Vue from 'vue'
import Router from 'vue-router'
import NewsList from '@/components/NewsList'
import Luyou from '../components/luyou.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'NewsList',
      component: NewsList
    },
    {
      path: '/luyou/:id',
      name: 'Luyou',
      component: Luyou
    },
  ]
})
